package com.example.sandabackend.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.sandabackend.entity.User;

import java.util.List;
import java.util.Map;

/**
* @author 不过青丝白发
* @description 针对表【sys_name】的数据库操作Service
* @createDate 2023-04-05 15:22:53
*/
public interface UserService extends IService<User>
//        extends IService<User>
{

    //插入和修改
  //  int save(User user);
    boolean saveUser(User user);

    List<User> findAll();

    Integer delectById(Integer id);

   Map findPage(Integer pageNum, Integer pageSize, String username, String email, String address);

    IPage<User> findPageByCondition(Integer pageNum, Integer pageSize, String username, String email, String address);
}
